<%--
  Created by IntelliJ IDEA.
  User: MGL
  Date: 2020/10/13
  Time: 20:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>添加菜单</title>
    <link rel="stylesheet" type="text/css" href="../css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
    <script type="text/javascript" src="../js/H-ui.min.js"></script>
    <script type="text/javascript" src="../js/H-ui.admin.js"></script>
    <script type="text/javascript" src="../js/menuZtree.js"></script>
    <script type="text/javascript" src="../js/jquerySession.js"></script>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" id="form-admin-add" action="${pageContext.request.contextPath}/getMenu/getAddMenu" method="post">

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>菜单名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" style="width: 300px" class="input-text" id="menuName" name="menuName">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>菜单类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span>
                    <select class="select" style="width: 150px" name="menuType" datatype="*" size="1">
                        <option value="1">菜单</option>
                        <option value="2">目录</option>
                        <option value="3">按键</option>
                    </select>
                </span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>父菜单：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" style="width: 300px" class="input-text" id="parentMenuId" name="parentMenuEntity.id">
                <input type="text" readonly style="width: 300px" class="input-text" id="parentMenu">
                <input class="btn btn-primary radius" type="button" onclick="showMenuZtree()" value="选择父菜单">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>菜单Url：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" style="width: 300px" class="input-text" id="menuUrl" name="menuUrl">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>菜单权限码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" style="width: 300px" class="input-text" id="pMenu" name="permissionsCode">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>菜单描述：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea class="textarea" name="menuDescribe"></textarea>
            </div>
            <div class="col-4"></div>
        </div>

        <div class="row cl">
            <div class="col-9 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    function showMenuZtree(){
        layer_show_menu("菜单树","../toAddMenuZtree","300","300")
    }


</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
